load("@rules_cc//cc:defs.bzl", "cc_binary")

package(default_visibility = ["//visibility:public"])

cc_binary(
    name = "bsdcat",
    srcs = [
        "bsdcat.c",
        "bsdcat.h",
        "bsdcat_platform.h",
        "cmdline.c",
    ],
    deps = [
        "//libarchive",
        "//libarchive_fe",
    ],
)

alias(
    name = "cat",
    actual = ":bsdcat",
)
